(a) in the case of a capital gain, the gain is to be reduced,i. if the creditor is a creditor affiliate, by an amount, not exceeding that capital gain, that is equal to twice the aggregate of all amounts each of which is an amount that would—in the absence of subparagraph ii of paragraph g of subsection 2 of section 40 of the Income Tax Act (R.S.C. 1985, c. 1 (5th Suppl.)) and paragraph g.04 of subsection 2 of section 95 of that Act and on the assumption that the creditor affiliate’s capital loss in respect of the repayment of the loan or indebtedness were a capital gain of the creditor affiliate, the creditor affiliate had no other income, loss, capital gain or capital loss for any taxation year, and no other foreign affiliate of a qualifying entity had any income, loss, capital gain or capital loss for any taxation year—be included in computing a qualifying entity’s income for the purposes of the Income Tax Act under subsection 1 of section 91 of that Act for its taxation year that includes the last day of the taxation year of the creditor affiliate that includes the later time, or
ii. if the creditor is a creditor partnership, by an amount, not exceeding that capital gain, that is equal to twice the amount that is the total of each amount, determined in respect of a particular member of the creditor partnership that is a foreign affiliate of a qualifying entity, that is equal to the aggregate of all amounts each of which is an amount that would—in the absence of subparagraph ii of paragraph g of subsection 2 of section 40 of the Income Tax Act and paragraph g.04 of subsection 2 of section 95 of that Act and on the assumption that the creditor partnership’s capital loss in respect of the repayment of the loan or indebtedness were a capital gain of the creditor partnership, the particular member had no other income, loss, capital gain or capital loss for any taxation year, and no other foreign affiliate of a qualifying entity had any income, loss, capital gain or capital loss for any taxation year—be included in computing a qualifying entity’s income for the purposes of the Income Tax Act under subsection 1 of section 91 of that Act for its taxation year that includes the last day of the taxation year of the particular member that includes the last day of the creditor partnership’s fiscal period that includes the later time; and
(b) in the case of a capital loss, the amount of the loss is to be reduced,i. if the creditor is a creditor affiliate, by an amount, not exceeding that capital loss, that is, in relation to the creditor affiliate’s capital gain in respect of the repayment of the loan or indebtedness, equal to twice the aggregate of all amounts each of which is an amount that would—in the absence of paragraph g.04 of subsection 2 of section 95 of the Income Tax Act and on the assumption that the creditor affiliate had no other income, loss, capital gain or capital loss for any taxation year, and no other foreign affiliate of a qualifying entity had any income, loss, capital gain or capital loss for any taxation year—be included in computing a qualifying entity’s income for the purposes of the Income Tax Act under subsection 1 of section 91 of that Act for its taxation year that includes the last day of the taxation year of the creditor affiliate that includes the later time, or
ii. if the creditor is a creditor partnership, by an amount, not exceeding that capital loss, that is, in relation to the creditor partnership’s capital gain in respect of the repayment of the loan or indebtedness, equal to twice the amount that is the total of each amount, determined in respect of a particular member of the creditor partnership that is a foreign affiliate of a qualifying entity, that is equal to the aggregate of all amounts each of which is an amount that would—in the absence of paragraph g.04 of subsection 2 of section 95 of the Income Tax Act and on the assumption that the particular member had no other income, loss, capital gain or capital loss for any taxation year, and no other foreign affiliate of a qualifying entity had any income, loss, capital gain or capital loss for any taxation year—be included in computing a qualifying entity’s income for the purposes of the Income Tax Act under subsection 1 of section 91 of that Act for its taxation year that includes the last day of the taxation year of the particular member that includes the last day of the creditor partnership’s fiscal period that includes the later time.